package com.gsta.cdn.cdr.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gsta.cdn.cdr.entity.ResultEntity;
import com.gsta.cdn.cdr.mapper.ResolutionTypeMapper;
import com.gsta.cdn.cdr.service.ResolutionTypeService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ResolutionTypeServiceImpl extends ServiceImpl<ResolutionTypeMapper, ResultEntity> implements ResolutionTypeService {
    @Override
    public List<Map<String, Object>> ResolutionTypeAll(String date, String percent, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.ResolutionTypeAll(date,percent,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> ResolutionTypeArea(String date, String percent) {
        return baseMapper.ResolutionTypeArea(date,percent);
    }

    @Override
    public List<Map<String, Object>> ResolutionTypeByArea(String date, String percent, String area, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.ResolutionTypeByArea(date,percent,area,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> ResolutionTypeAreaPopName(String date, String percent, String area) {
        return baseMapper.ResolutionTypeAreaPopName(date,percent,area);
    }

    @Override
    public List<Map<String, Object>> ResolutionTypeByAreaPopName(String date, String percent, String area, String popName, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.ResolutionTypeByAreaPopName(date,percent,area,popName,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> ResolutionTypeByPopName(String date, String percent, String popName, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.ResolutionTypeByPopName(date,percent,popName,page,pageSize);
    }
}
